import request from "../request.js";

import followJson from '@/assets/mock/follow.json'
import memberJson from '@/assets/mock/member.json'
import recommendJson from '@/assets/mock/recommend1.json'
import videoJson from '@/assets/mock/video.json'
import hotJson from '@/assets/mock/hot.json'
import answers2 from '@/assets/mock/answers2.json'

// 获取热榜
// export const HOT = (limit) => request('GET', `/api/hot?limit=${limit}`)
// 获取视频
// export const VIDEO = (offset) => request('GET', `/api/video?offset=${offset}`)
// 获取关注
// export const FOLLOW = (limit) => request('GET', `/api/follow?limit=${limit}`)
// 获取用户具体信息
// export const MEMBERS = (url_token) => request('GET', `/api/members/${url_token}`)
// 获取动态
// export const MOMENT = (method, url, data = null) => request(method, url, data)
// 获取推荐
// export const RECOMMEND = (limit = 10) => request('GET', `/api/recommend?limit=${limit}`)
// 获取关注文章下的评论
// export const FOLLOW_COMMENT = (type, id) => request('GET', `/api/comments/${type}/${id}`)

export function FOLLOW_COMMENT(limit) {
    return Promise.resolve(answers2);
}

export function HOT(limit) {
    return Promise.resolve(hotJson);
}

export function VIDEO(limit) {
    return Promise.resolve(videoJson);
}

export function RECOMMEND(limit) {
    return Promise.resolve(recommendJson);
}

export function FOLLOW(limit) {
    return Promise.resolve(followJson);
}

export function MEMBERS(limit) {
    return Promise.resolve(memberJson);
}



